package com.actionsoft.ActionEvent;

import com.actionsoft.bpms.bo.engine.BO;
import com.actionsoft.bpms.bpmn.engine.core.delegate.ProcessExecutionContext;
import com.actionsoft.bpms.bpmn.engine.listener.ValueListener;
import com.actionsoft.sdk.local.SDK;

public class deleteview extends ValueListener {
    @Override
    public String execute(ProcessExecutionContext ctx) throws Exception {
        String rowDate =ctx.getParameterOfString("ALUMNI_ID");
        BO bo = SDK.getBOAPI().query("BO_EU_XIAOYOUXINXI").addQuery("ALUMNI_ID =",rowDate).detail();
        int count = SDK.getBOAPI().remove("BO_EU_XIAOYOUXINXI",bo.getId());
        return "count="+count;
    }
}
